﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" PreSalesOrder to change the interface name "IPreSalesOrderServices" in both code and config file together.
    [ServiceContract]
    public interface IPreSalesOrderServices
    {
        [OperationContract]
        List<PreSalesOrderDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                       string sortType = "ASC");

        [OperationContract]
        bool Save(PreSalesOrderDTO PreSalesOrder);

        [OperationContract]
        bool Delete(PreSalesOrderDTO PreSalesOrder);

        [OperationContract]
        List<PreSalesOrderDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                 out long recordCount);

        [OperationContract]
        List<PreSalesOrderDTO> GetAllPreSalesOrder();

        [OperationContract]
        PreSalesOrderDTO GetPreSalesOrder(string kodePreSalesOrder);

        [OperationContract]
        List<PreSalesOrderDTO> GetPreSalesOrderList(string kodePreSalesOrder);

        [OperationContract]
        bool DeleteDetail(PreSalesOrderDetailDTO PreSalesOrderDetail);

        [OperationContract]
        string GetLastSRNo();

        [OperationContract]
        bool SendEmail(PreSalesOrderDTO preSalesOrderDto, String DestinationFolder);
    }
}